"""

每日充电的初级计算器
add:加  sub：减  mul：乘  div：除 remainder：取余 squ：开方  aliquot：取整

"""


# 加
def add(a, b):
    return a + b


# 减
def sub(a, b):
    return a - b


# 乘
def mul(a, b):
    return a * b


# 除
def div(a, b):
    return a / b


# 取余
def remainder(a, b):
    return a % b


# 开方
def squ(a, b):
    return a ** (1 / b)


# 取整
def aliquot(a, b):
    return a // b


if __name__ == '__main__':
    print("欢迎使用每日充电计算器！\n")
    a1 = int(input("请输入第一个数："))
    operator = input("请输入'+''-''*''/'//''%''squ''值:")
    b1 = int(input("请输入第二个数"))
    if operator == "+":
        result = add(a1, b1)
    if operator == "-":
        result = sub(a1, b1)
    if operator == "*":
        result = mul(a1, b1)
    if operator == "/":
        result = div(a1, b1)
    if operator == "//":
        result = aliquot(a1, b1)
    if operator == "squ":
        result = squ(a1, b1)
    if operator == "%":
        result = remainder(a1, b1)
    print("您的结果是：", result)
